import React, { Component } from 'react'
import { connect } from 'react-redux'
import store from 'first'

export class tuijian extends Component {
  render() {
    console.log(this.props);
    return (
      <div>
        <ul>
          {
            this.props.list.map((item, index) => {
              return (
                <li key={index}>
                  {item.name}
                </li>
              )
            })
          }
        </ul>
      </div>
    )
  }
}

const mapStateToProps = (state) => {
  // console.log('state', state);
  return {
    // list: state.list
  }
}

const mapDispatchToProps = {

}

export default connect(mapStateToProps, mapDispatchToProps)(tuijian)